package oaSystem.web.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import oaSystem.biz.DepartmentBiz;
import oaSystem.entity.Department;
import oaSystem.web.security.Authorize;


@Controller
public class ActivityController {
	@Autowired
	private DepartmentBiz departmentBiz;
	@Authorize(rules="calendar")
	@RequestMapping("/calendar")
	public String calendar(HttpServletRequest request){
		List<Department> departmentList = departmentBiz.findAllDepartment();
		request.getSession().setAttribute("departmentList", departmentList);
		return "calendar";
	}
}
